package com.yoyo.itravel.bean;

import java.io.Serializable;
import java.util.List;

/**
 * 常用旅客信息实体类
 * @author wanpeng
 * @version v1.0
 * @date 2020/6/17 15:51
 */
public class TravelerInfo implements Serializable {

    private String travelerId; // 旅客id
    private String realName; // 真实姓名
    private String  phone; // 手机号
    private String IDCard; // 身份证号码
    private List<User> users;//用户
    //无参构造器
    public TravelerInfo() {
    }
    //全参构造器
    public TravelerInfo(String travelerId, String realName, String phone, String IDCard,List<User> users) {
        this.travelerId = travelerId;
        this.realName = realName;
        this.phone = phone;
        this.IDCard = IDCard;
        this.users = users;
    }

    public String getTravelerId() {
        return travelerId;
    }

    public void setTravelerId(String travelerId) {
        this.travelerId = travelerId;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIDCard() {
        return IDCard;
    }

    public void setIDCard(String IDCard) {
        this.IDCard = IDCard;
    }

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
    }

    @Override
    public String toString() {
        return "TravelerInfo{" +
                "travelerId='" + travelerId + '\'' +
                ", realName='" + realName + '\'' +
                ", phone='" + phone + '\'' +
                ", IDCard='" + IDCard + '\'' +
                '}';
    }

}
